<%-- 
    Document   : consultada
    Created on : Feb 20, 2012, 9:44:51 AM
    Author     : andreth
--%>

<%@page import="clases.Matriz"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
  <script src="/CPYD/interfaz/javascript/reportes.js" language="Javascript"></script>
<tiles:insert definition="mensaje"></tiles:insert>
<logic:present name="Matriz">
    
    <% Integer idmatriz = ((Matriz)request.getAttribute("Matriz")).getIdMatriz();
        Matriz matriz = (Matriz)request.getAttribute("Matriz");%>
       
    <h3> Seleccione la matriz que desea ver : </h3>
    <html:form action="/consultarMatriz?method=one" onsubmit="return this">
        <html:hidden name="Matriz" property="idMatriz"></html:hidden>
        <div class="buttons">
                <button type="submit" class="positive" style="margin-left: 40%; margin-top: 1%;">
                <img src="interfaz/images/agregar.png" alt=""/>
                Seleccionar
                </button>
        </div>
    </html:form>
    <br><br>
     <logic:present name="Matriz" property="tipo">
         <h3>  Si desea gestionar las <b> totalizaciones </b> para esta matriz: </h3>
    <div class="buttons">
        <button type="submit" class="regular" style="margin-left: 40%; margin-top: 1%;">
             <img src="interfaz/images/totalizacion.png" alt=""/>
              Consultar Totalizaciones
        </button>
    </div>
    <br><br>
        <h1>  <bean:write name="Matriz" property="nombre"></bean:write> </h1>
       
        <tiles:insert definition="vistas.admin.matrices.matriz" flush="false"></tiles:insert>
                <br><br><br><br>
        </logic:present>
</logic:present>

